'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const {
		category
	} = event
    const res = await db.collection('goods').where({
		"category":category
	}).get()
	//返回数据给客户端
	return res
	
	};
